


<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <textarea name="manageRange" id="manageRange" style="width:600px" wrap="soft" cols="20" rows="10"></textarea>
  <input type=button onclick="aa()" value="test">
</body>
<script>
  function aa() {
    var str = escape(document.getElementById("manageRange").value);
    var arr = str.split("%0A");  //%0A换行符

    console.log(arr,arr.length + "行")
  }
</script>
</html>